package chapter3;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class Calendars {
	public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);
		
		DateTime calendar = new DateTime(shell, SWT.CALENDAR);
		
		calendar.pack();
		
		shell.pack();
		
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		
		display.dispose();
		
	}
}
